package utils

import (
	"github.com/astaxie/beego"
	"strings"
)

func ViewFunctionInit()  {
	beego.AddFuncMap("getVideoUrl",getVideoUrl)
}

func getVideoUrl(url string)  string{
	result := strings.SplitAfter(url,".")
	return beego.AppConfig.String("oss_video")+result[0]+"jpg"
}

